﻿using System;

namespace ISEFun
{
    public class SEFileInfo
    {
        public String SourcePath;
        public String DestinationPath;
        public SEType Type;
        public DateTime Modified;

        public SEFileInfo(String sPath, String dPath, SEType type)
        {
            SourcePath = sPath;
            DestinationPath = dPath;
            Type = type;
            Modified = DateTime.Now;
        }

        public SEFileInfo(String Path, SEType type)
        {
            // Depending on type we decide what to do with a Path var
            Type = type;
            switch (type)
            {
                case SEType.Saved:
                    SourcePath = Path;
                    DestinationPath = Path;
                    break;
                case SEType.NotSaved:
                    SourcePath = Path;
                    DestinationPath = null;
                    break;
                case SEType.New:
                    SourcePath = null;
                    DestinationPath = Path;
                    break;
            }
            Modified = DateTime.Now;
        }

        public SEFileInfo()
        {
            Type = SEType.New;
            SourcePath = null;
            DestinationPath = null;
            Modified = DateTime.Now;
        }
    }
}